<?php

include_once "mp3.class.php";

//implementation array indices
$mesMp3[] = new Mp3("Rooster in my Rarie", "Waka Flocka Flame", 3.09);
$mesMp3[] = new Mp3("Waiting in the van", "Bob Marley", 3.54);
$mesMp3[] = new Mp3("Easy Easy ", "TNGHT", 2.97);

usort($mesMp3, array("Mp3", "compareToTitre"));

foreach ($mesMp3 as $unMp3) {
echo $unMp3 . "\n";
}
?>
